package com.lq.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 获取spring配置工具
 * 
 * @author guanmi
 * @version 2012 -7-20
 * 
 */
public class ApplicationContextUtil {
	private static ApplicationContext applicationContext;

	public static ApplicationContext getApplicationContext() {
		applicationContext = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		return applicationContext;
	}

	public static void setApplicationContext(
			ApplicationContext applicationContext) {
		ApplicationContextUtil.applicationContext = applicationContext;
	}

}
